class ElderInfoData{
  String? name;
  String? age;
  String? sex;
  String? bedNo;
  dynamic imageHead;
  dynamic roomId;

  ElderInfoData({this.name, this.age, this.sex, this.bedNo,this.imageHead,this.roomId});

  Map<String, dynamic> toMap() {
    return {
      'name': this.name,
      'age': this.age,
      'sex': this.sex,
      'bedNo': this.bedNo,
      'imageHead': this.imageHead,
      'roomId': this.roomId,
    };
  }

  factory ElderInfoData.fromMap(Map<String, dynamic> map) {
    return ElderInfoData(
      name: map['name'] ,
      age: map['age'] ,
      sex: map['sex'] ,
      bedNo: map['bedNo'] ,
      imageHead: map['imageHead'] ,
      roomId: map['roomId'] ,
    );
  }
}